<?php 
class Ziptest extends CI_Controller {
	public function __construct(){
		parent::__construct();
	}

	public function index($p=0){
		print_r($p);
		$this->load->library('zip');
		$name = 'mydata1.txt';
		$data = 'A data str';
		$this->zip->add_data($name, $data);


		$this->zip->download('2012-3-2.cook.zip');
	}
}